package com.jiaai.common.api;


import com.jiaai.exception.ServerException;

/**
 * <p>
 * TODO
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title CodeServer
 * @since 2017/10/11
 */
public interface ICodeApi {
    /**
     * 发送验证码
     * @param phone
     * @return
     */
    public  void sendCode(String phone)throws ServerException;

    /**
     * 验证手机号码
     * @param phone
     * @param code
     * @return
     */
    public  Boolean checkCode(String phone,String code)throws ServerException;
}
